/*
 * @Descripttion:
 * @version:
 * @Author: kl2018
 * @Date: 2019-03-07 20:06:15
 * @LastEditors: kl2018
 * @LastEditTime: 2020-08-10 10:30:03
 */
import { WeaTools } from 'ecCom';

// const officalTypeValIndex = window.location.href.indexOf('officalType') + 12;
// const officalType = window.location.href.substring(officalTypeValIndex, officalTypeValIndex + 1);

export const getList = (officalType, params) => WeaTools.callApi('/api/offical/collectionSend/getList', 'POST', { ...params, officalType });

export const getCondition = (officalType, params) => WeaTools.callApi('/api/offical/collectionSend/condition', 'POST', { ...params, officalType });

export const getBaseinfo = (officalType, params) => WeaTools.callApi('/api/offical/collectionSend/getBaseinfo', 'POST', { ...params, officalType });

export const getTreeNode = (officalType, params) => WeaTools.callApi('/api/offical/collectionSend/treeNode', 'GET', { ...params, officalType });
